package com.cn.xiaonuo.slbfinances.payconfig.controller;

import com.cn.xiaonuo.common.entity.BusinessMessage;
import com.cn.xiaonuo.slbfinances.payconfig.param.SlPayTypeParam;
import com.cn.xiaonuo.slbfinances.payconfig.service.SlbPayTypeService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * @BelongsProject: slb-reports-java
 * @Author: likui
 * @CreateTime: 2022-09-21  10:23
 * @Description: 支付方式相关接口
 */
@RestController
public class SlPayTypeController {
    @Autowired
    private SlbPayTypeService slbPayTypeService;

    @ApiOperation(value = "支付方式列表", notes = "支付方式列表")
    @PostMapping("/api/slbPayType/pagePayType")
    public BusinessMessage pagePayType(@RequestBody SlPayTypeParam param){
        BusinessMessage message =slbPayTypeService.pagePayType(param);
        return message;
    }

    @ApiOperation(value = "支付方式现实状态修改", notes = "支付方式现实状态修改")
    @PostMapping("/api/slbPayType/updateState")
    public BusinessMessage updateState(@RequestBody SlPayTypeParam param){
        BusinessMessage message =slbPayTypeService.updateState(param);
        return message;
    }
}
